﻿<UserControl x:Class="SLIP.Shells.SLIPLeftMenuShell" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:regions="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"
           mc:Ignorable="d"
           >                 
    <Grid x:Name="LayoutRoot" >
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top">
            <Border Margin="16,0,0,0">
                <!-- Main Prism Region -->
                <ItemsControl Name="MainRegion"  regions:RegionManager.RegionName="MainRegion"/>
            </Border>
        </Grid>
        <!-- Add this last so it is always on top -->
        <Image Source="/SLIP;component/images/slip_orb.png" Name="menuOrb" 
            Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top" 
            Width="16" Height="16" MouseLeftButtonUp="menuOrb_MouseLeftButtonUp" Stretch="Fill"
            MouseEnter="menuOrb__MouseEnter" MouseLeave="menuOrb_MouseLeave"/>
        <Popup Name="puMenu" IsOpen="False">
            <Border Name="bdrMenu" Margin="24">
                <ScrollViewer Height="500">
                    <!-- Menu Region -->
                    <ItemsControl Name="MenuRegion"  regions:RegionManager.RegionName="MenuRegion"/>
                </ScrollViewer>
            </Border>
        </Popup>
    </Grid>


</UserControl>
